#{extends '/include/main.html' /}
<div class="search-result-zone">
	<h2 class="search-result-title">用户管理</h2>
	<div class="search-result-query-zone">
		<a href="@@{AdminController.formUser()}" class="search-result-button search-result-new">新建</a>
	</div>
	<table id="search-result">
		<thead>
			<tr>
				<th>序号</th>
				<th class="search-row-tablename">用户名</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			#{if users.size() < 1}
				#{emptyContent number:3 /}
			#{/if}
			#{else}
				#{list items : users , as : 'user'}
					<tr>
						<td>${user.id}</td>
						<td class="search-row-tablename">${user.name}</td>
						<td><a href="@@{AdminController.formUser(user.id)}">修改</a></td>
					</tr>
				#{/list}
			#{/else}
		</tbody>
	</table>
</div>
